package com.easy.system.service.impl;

import com.easy.system.dao.BaseDao;
import com.easy.system.dao.HibernateBaseDao;
import com.easy.system.service.BaseService;
import com.easy.system.service.HibernateBaseService;
import com.easy.system.util.Condition;
import com.easy.system.util.Pagination;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: sunguangzhu
 * Date: 13-7-1
 * Time: 下午2:53
 * To change this template use File | Settings | File Templates.
 */
@Service
public class HibernateBaseServiceImpl<T> implements HibernateBaseService<T> {
    @Resource
    private HibernateBaseDao<T> hibernateBaseDao;
    @Override
    public List<T> find(Condition condition, Pagination pagination) {
        return this.hibernateBaseDao.find(condition,pagination);
        //To change body of implemented methods use File | Settings | File Templates.
    }
}
